package vader.tableStore.entity;

import com.fancy.cc.common.tableStore.annotation.TsField;
import com.fancy.cc.common.tableStore.annotation.TsTable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: 考恩
 * @since 2021-10-09 11:47
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TsTable(name = "cms_article",multiIndexName = "cms_source_articleId_index")
public class CmsArticleDetail implements Serializable {
    //主键部分
    @TsField(name = "articleSource", primaryKey = true, multiIndex = true)
    private String articleSource;
    @TsField(name = "syncVersion", primaryKey = true)
    private Integer syncVersion;
    @TsField(name = "articleId", primaryKey = true, multiIndex = true)
    private String articleId;

    //预定义列部分
    @TsField(name = "cover")
    private String cover;

    @TsField(name = "title")
    private String title;

    @TsField(name = "recommendStatus")
    private Boolean recommendStatus;

    @TsField(name = "categoryName")
    private String categoryName;

    @TsField(name = "topStatus")
    private Boolean topStatus;

    @TsField(name = "articleType")
    private Integer articleType;

    @TsField(name = "author")
    private String author;

    @TsField(name = "collectCount")
    private Integer collectCount;

    @TsField(name = "relatedGoods")
    private String relatedGoods;

    @TsField(name = "auditing")
    private Boolean auditing;

    @TsField(name = "appId")
    private String appId;

    @TsField(name = "abstract")
    private String abstracts;

    @TsField(name = "content")
    private String content;

    @TsField(name = "status")
    private Integer status;

    @TsField(name = "showTime")
    private String showTime;

    @TsField(name = "tagList")
    private String tagList;

    @TsField(name = "isCollect")
    private Integer isCollect;

    @TsField(name = "relatedArticle")
    private String relatedArticle;

    @TsField(name = "tenantId")
    private String tenantId;

    @TsField(name = "createTime")
    private String createTime;

    @TsField(name = "releaseTime")
    private String releaseTime;

    @TsField(name = "updateTime")
    private String updateTime;

    @TsField(name = "deleteTime")
    private String deleteTime;



}
